package com.huage.pojo;

import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Data
@Table(name = "tb_user")
public class User {
    @Id
    //主键回填
    @KeySql(useGeneratedKeys = true)
    private Long id; //主键id
    private String user_name;//用户名
    private String password; //密码
    private String name; //姓名
    private int age; //年龄
    private int sex; //性别，1男性，2女性
    private Date birthday; //出生日期
    private String note; //备注
    private Date created; //创建时间
    private Date updated; //更新时间

}
